#pragma once

#include <stdio.h>
#include <stdbool.h> 
#include "esp_log.h"
#include "iot_button.h"
#include "button_gpio.h"
#include "driver/gpio.h"



/***********************************************************/
/****************    按钮 ↓   ****************************/

#define BUTTON_ACTIVE_LEVEL     0

typedef struct
{
    button_event_t event;
    uint32_t button_num;
} button_callback_data_t;

void button_init(uint32_t button_num, button_event_t event, button_cb_t callback_func);
// void io0_btn_init(void);
void io0_gpio_init(void);

/***************    按钮 ↑   *************************/
/***********************************************************/